function TransactionIndexController($state, $scope, $http) {

    function getTransactionList() {
        $http({
            url: 'transaction/getTransactionList',
            method: 'get',
        }).success(function(response) {
            console.log(response);
            $scope.list = response;
        });
    }

    getTransactionList();
}